<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" 
	import="com.ffcs.crmd.platform.ui.utils.JspUtil"%>
<!DOCTYPE html>
<jsp:include page="/resources/theme/default/include/default-header-inc.jsp"></jsp:include>
<jsp:include page="/resources/theme/default/include/default-footer-inc.jsp"></jsp:include>
<html>
<head>
<title>菜单管理</title>
<script type="text/javascript" src="../sys-service.js"></script>
<script type="text/javascript" src="./menu-controller.js"></script>
</head>
<body ng-app="sysMenuApp" ng-controller="sysMenuCtrl" style="background-color: transparent;">
	<div class="container-fluid content" style="margin-top: 12px;">
		<div class="panel">
			<div class="panel-heading">
				<i class="mark"></i>菜单信息
			</div>
			<div class="panel-body" style="padding-top: 0px;">
				<div id="menutabletoolbar" class="btn-group">
					<button id="addButton" class="btn btn-sm btn-blue" data-toggle="modal" data-target="#menuEditModal" ng-click="action='addmenu'">
						<i class="glyphicon glyphicon-plus-sign"></i> 新增
					</button>
					<button id="modButton" class="btn btn-sm btn-blue" data-toggle="modal" data-target="#menuEditModal" ng-click="action='modmenu'" disabled>
						<i class="glyphicon glyphicon-pencil"></i> 修改
					</button>
					<button id="removeButton" class="btn btn-sm btn-blue" ng-click="deleteMenus()" disabled >
						<i class="glyphicon glyphicon-remove"></i> 删除
					</button>
				</div>
				<div class="table-responsive">
					<table id="menuTable" 
						data-id-field="id"
						data-side-pagination="server"
						data-toolbar="#menutabletoolbar" 
						data-row-style="rowStyle"
						data-pagination="true" 
						data-page-size="10"
						data-query-params-type="" 
						data-click-to-select="true"
						data-page-list="[5, 10, 20]">
						<thead>
							<tr>
								<th data-checkbox='true' />
								<th data-field="menuName">菜单名称</th>
								<th data-field="menuPath">Path</th>
								<th data-field="privName">所属权限</th>
								<th data-field="parentName">上级菜单</th>
							</tr>
						</thead>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div>
		<jsp:include page="./menu-edit.jsp"></jsp:include>
	</div>
	<div>
		<jsp:include page="./menu-privilege-select.jsp"></jsp:include>
	</div>
	<div>
		<jsp:include page="./menu-patent-select.jsp"></jsp:include>
	</div>
</body>
</html>